{include file="public/header" /}
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">栏目分类</a></li>
        <li><a href="{:url('article/categoryOperate',array('action' => 'add'))}">添加分类</a></li>
    </ul>
    <div class="margin-top-20">

    </div>

    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th>ID</th>
            <th>分类名称</th>
            <th>排序</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        {foreach name="list" item="vo"}
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.sort}</td>
                <td>{$vo.createTime}</td>
                <td>
                    <a href="{:url('article/categoryOperate',array('action'=>'edit','id'=>$vo['id']))}">编辑</a>
                </td>
            </tr>

            {foreach name="$vo['children']" item="vo2"}
                <tr>
                    <td>{$vo2.id}</td>
                    <td>└———{$vo2.name}</td>
                    <td>{$vo2.sort}</td>
                    <td>{$vo2.createTime}</td>
                    <td>
                        <a href="{:url('article/categoryOperate',array('action'=>'edit','id'=>$vo2['id']))}">编辑</a>
                    </td>
                </tr>
            {/foreach}
        {/foreach}
    </table>
</div>
<script src="/static/admin/js/admin.js"></script>
</body>
</html>